/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package delegate;

import administracion.delegate.GestionPedidosDelegate;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.view.JasperViewer;



/**
 *
 * @author luis_angel
 */
public class Reportes {

    public static void verTrabajadores(String id_empresa){
     try {
                Map parameters = new HashMap();
                parameters.put("id_empresa",id_empresa);
                JasperPrint jPrint = GestionPedidosDelegate.getInstance().generarReporte("reporte_trabajadores.jasper", parameters);
                JasperViewer.viewReport(jPrint, false);
                //JasperPrintManager.printReport( jPrint, false);
     } catch (Exception e) {
          System.out.println("error " + e.getMessage());
     }
    }

}
